package com.lyf.scm.admin.api.dto;

import com.lyf.scm.common.model.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Author: huangtao
 * @Description: 配置springcloud实体类
 * @Date: create in 2020/11/2 14:19
 */
@Component
@ApiModel("配置springcloud实体类")
public class ProxySelectorParamsDTO extends BaseDTO {

    @ApiModelProperty("导入时间(0-6表示周日到周六)")
    private String importTime;

    @ApiModelProperty("确认时间(0-6表示周日到周六)")
    private String confirmTime;

    @Value("${http.clients.transfer.import_time}")
    public void setImportTime(String importTime){
        this.importTime = importTime;
    }

    @Value("${http.clients.transfer.confirm_time}")
    public void setConfirmTime(String confirmTime){
        this.confirmTime = confirmTime;
    }

    public String getImportTime(){
        return importTime;
    }

    public String getConfirmTime(){
        return confirmTime;
    }
}
